<template>
  <div>
    <el-row :gutter="10">
        <el-col :span="6">
          <el-card>
            <Detail title="总销售额" count="￥ 12306">
              <template slot="charts">
                <span>周同比&nbsp;&nbsp;56.67%
                  <svg t="1719391826868" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12372" width="16" height="16"><path d="M512 0l384 512h-256l-128 512-128-512H128z" fill="#D7000F" p-id="12373"></path></svg>
                </span>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;日同比&nbsp;&nbsp;19.16%
                  <svg t="1719391942699" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6638" width="16" height="16"><path d="M512 1024L128 512h256l128-512 128 512h256z" fill="#45FB80" p-id="6639"></path></svg>
                </span>
              </template>
              <template slot="footer">
                <span>日销售额 ￥12354</span>
              </template>
            </Detail>
          </el-card>
        </el-col>
        <el-col :span="6">
          <el-card>
            <Detail title="访问量" count="88460">
              <template slot="charts">
                <lineChart></lineChart>
              </template>
              <template slot="footer">
                <span>日访问量 1245</span>
              </template>
            </Detail>
          </el-card>
        </el-col>
        <el-col :span="6">
          <el-card>
            <Detail title="支付笔数" count="23556">
              <template slot="charts">
                <barChart></barChart>
              </template>
              <template slot="footer">
                <span>转化率 45%</span>
              </template>
            </Detail>
          </el-card>
        </el-col>
        <el-col :span="6">
          <el-card>
            <Detail title="运营活动效果" count="78%">
              <template slot="charts">
                <progressChart></progressChart>
              </template>
              <template slot="footer">
                <span>周同比&nbsp;&nbsp;56.67%
                  <svg t="1719391826868" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12372" width="16" height="16"><path d="M512 0l384 512h-256l-128 512-128-512H128z" fill="#D7000F" p-id="12373"></path></svg>
                </span>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;日同比&nbsp;&nbsp;19.16%
                  <svg t="1719391942699" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6638" width="16" height="16"><path d="M512 1024L128 512h256l128-512 128 512h256z" fill="#45FB80" p-id="6639"></path></svg>
                </span>
              </template>
            </Detail>
          </el-card>
        </el-col>
    </el-row>
  </div>

</template>

<script>
import Detail from './Detail'
import lineChart from './lineChart'
import barChart from './barChart'
import progressChart from './progressChart'

export default {
  name: 'Card',
  components: {
    Detail,
    lineChart,
    barChart,
    progressChart
  },

}
</script>

<style>

</style>
